<?php

/**
 *Picture
 *
 *@Table Schema: gaoqi_api
 *@Table Name: picture
 */
class PictureModel extends \Base\Model\AbstractModel {

    /**
     *Id
     *
     *Column Type: int(10)
     *auto_increment
     *PRI
     *
     *@var int
     */
    protected $_id = null;

    /**
     *图片路径
     *
     *Column Type: varchar(255)
     *
     *@var string
     */
    protected $_url = null;

    /**
     *1 - 首页大图 2 - 发现页头像
     *
     *Column Type: int(1) unsigned
     *
     *@var int
     */
    protected $_type = null;

    /**
     *排序
     *
     *Column Type: int(10) unsigned
     *
     *@var int
     */
    protected $_reorder = null;

    /**
     *更新时间
     *
     *Column Type: int(10) unsigned
     *
     *@var int
     */
    protected $_updateTime = null;

    /**
     *添加时间
     *
     *Column Type: int(10) unsigned
     *
     *@var int
     */
    protected $_addTime = null;

    /**
     *Id
     *
     *Column Type: int(10)
     *auto_increment
     *PRI
     *
     *@param int $id
     *@return \PictureModel
     */
    public function setId($id) {
        $this->_id = (int)$id;

        return $this;
    }

    /**
     *Id
     *
     *Column Type: int(10)
     *auto_increment
     *PRI
     *
     *@return int
     */
    public function getId() {
        return $this->_id;
    }

    /**
     *图片路径
     *
     *Column Type: varchar(255)
     *
     *@param string $url
     *@return \PictureModel
     */
    public function setUrl($url) {
        $this->_url = (string)$url;

        return $this;
    }

    /**
     *图片路径
     *
     *Column Type: varchar(255)
     *
     *@return string
     */
    public function getUrl() {
        return $this->_url;
    }

    /**
     *1 - 首页大图 2 - 发现页头像
     *
     *Column Type: int(1) unsigned
     *
     *@param int $type
     *@return \PictureModel
     */
    public function setType($type) {
        $this->_type = (int)$type;

        return $this;
    }

    /**
     *1 - 首页大图 2 - 发现页头像
     *
     *Column Type: int(1) unsigned
     *
     *@return int
     */
    public function getType() {
        return $this->_type;
    }

    /**
     *排序
     *
     *Column Type: int(10) unsigned
     *
     *@param int $reorder
     *@return \PictureModel
     */
    public function setReorder($reorder) {
        $this->_reorder = (int)$reorder;

        return $this;
    }

    /**
     *排序
     *
     *Column Type: int(10) unsigned
     *
     *@return int
     */
    public function getReorder() {
        return $this->_reorder;
    }

    /**
     *更新时间
     *
     *Column Type: int(10) unsigned
     *
     *@param int $updateTime
     *@return \PictureModel
     */
    public function setUpdate_time($updateTime) {
        $this->_updateTime = (int)$updateTime;

        return $this;
    }

    /**
     *更新时间
     *
     *Column Type: int(10) unsigned
     *
     *@return int
     */
    public function getUpdate_time() {
        return $this->_updateTime;
    }

    /**
     *添加时间
     *
     *Column Type: int(10) unsigned
     *
     *@param int $addTime
     *@return \PictureModel
     */
    public function setAdd_time($addTime) {
        $this->_addTime = (int)$addTime;

        return $this;
    }

    /**
     *添加时间
     *
     *Column Type: int(10) unsigned
     *
     *@return int
     */
    public function getAdd_time() {
        return $this->_addTime;
    }

    /**
     *Return a array of model properties
     *
     *@return array
     */
    public function toArray() {
        return array(
            'id'          => $this->_id,
            'url'         => $this->_url,
            'type'        => $this->_type,
            'reorder'     => $this->_reorder,
            'update_time' => $this->_updateTime,
            'add_time'    => $this->_addTime
        );
    }

}
